package com.huluobo.a2207kotlindouyin

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
import com.huluobo.a2207kotlindouyin.adapter.CommonPagerAdapter
import com.huluobo.a2207kotlindouyin.databinding.ActivityMainBinding
import com.huluobo.a2207kotlindouyin.home.HomeFragment
import com.huluobo.a2207kotlindouyin.message.MessageFragment
import com.huluobo.a2207kotlindouyin.mine.MineFragment
import com.huluobo.a2207kotlindouyin.startLive.StartLiveActivity
import com.huluobo.a2207kotlindouyin.videos.VideoFragment
import com.huluobo.base.mvvm.BaseActivity
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
    override fun initData() {
    }

    override fun initView() {
        val navHostFragment = supportFragmentManager.findFragmentById(R.id.fragmentContainerView) as NavHostFragment
        val navController = navHostFragment.navController
        binding.mainNav.setupWithNavController(navController)
    }

}